package com.grad.why.studentsystem.mapper;

import com.grad.why.studentsystem.domain.Camera;
import com.grad.why.studentsystem.domain.CameraExample;
import com.grad.why.studentsystem.domain.current.CurrentCaremaInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CameraMapper {
    int countByExample(CameraExample example);

    int deleteByExample(CameraExample example);

    int deleteByPrimaryKey(Integer cameraid);

    int insert(Camera record);

    int insertSelective(Camera record);

    List<Camera> selectByExample(CameraExample example);

    Camera selectByPrimaryKey(Integer cameraid);

    int updateByExampleSelective(@Param("record") Camera record, @Param("example") CameraExample example);

    int updateByExample(@Param("record") Camera record, @Param("example") CameraExample example);

    int updateByPrimaryKeySelective(Camera record);

    int updateByPrimaryKey(Camera record);

    List<CurrentCaremaInfo> getCameraInfos(@Param("offset") int offset,@Param("limit") int limit,@Param("search") String search);

    long getCameraInfosLength(@Param("search") String search);

    int getMaxCameraId();

    List<Camera> getCameraInfosByClassroomId(@Param("classrommid") int classroomid);

    List<Camera> getRunningCameraInfos();

    List<Camera> getAllCameraInfos();
}